<?php


namespace App\Http\Controllers\App;


use App\Http\Controllers\Controller;
use App\Http\Services\NotifyService;
use Auth;

class MessageController extends Controller
{
    private $notifyService;
    public function __construct()
    {
        $this->notifyService = new NotifyService();
    }

    public function list()
    {
        $action = request('action');
        $user = Auth::user();
        return $this->notifyService->getUserNotify($user->id, $action);
    }
}